package com.rf.HelloSpringBoot.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * @author linzhengchun
 *
 * 2017年7月19日 下午11:10:31
 */
@RestController
public class HelloController {
	
	@Value("${name}")
	private String name;
	@Value("${age}")
	private Integer age;
	@Value("${introduce}")
	private String introduce;
	
	@RequestMapping(value = "/hello", method = RequestMethod.POST)
	public String sayHello () {
//		return "Hello, Spring Boot~</br>" + this.name + ", " + this.age;
		return "Hello, Spring Boot~</br>" + this.introduce;
	}
}
